#!/usr/bin/env python
#-*- coding:utf-8 -*-

# file:urls.py
# author:86133
# datetime:2022/6/21 10:38
# software: PyCharm
'''
this is functiondescription
'''
from flask_restful import Api

from . import ssouser_blueprint
from ..ssoUserResource.ssoUserResource import SsoUserResource
from ..ssoUserResource.ssoUserOtherResource import SsoUserOtherResource

api = Api(ssouser_blueprint)

api.add_resource(SsoUserResource, '/user/<userID>', '/user', endpoint='ssoUser')


# 学生登录
@ssouser_blueprint.route('/user/login', methods=['POST'], endpoint='user_login')
def student_login():
    return SsoUserOtherResource.student_login()